const app = getApp()

Page({
  data: {
    html:"内容",
    hiddenMenu: true,
     html: "加载中...",
    id:0,
    nbLoading: false,
  },
  onLoad: function (options) {
    console.log(options.a)
    this.setData({
      id:parseInt(options.a),
      
    })
    var that =this
    wx.request({
      url:`https://sue_ribaj.gitee.io/text/` + this.data.id + '.html',
      success: function(res){
        console.log(res.data)
        that.setData({
          html:res.data,
        })
      }
    })
    
  },
  switchMenu: function(){
    console.log("tappppppppppppppppppp")
    this.setData({
      hiddenMenu: !this.data.hiddenMenu,
    })
  }
})

